package mest.service.hank.impl;

import mest.dao.hank.plan_productjob_takematerialMapper;
import mest.entity.plan_productjob_purchase_record;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_takematerial;
import mest.entity.plan_productjob_takematerial_record;
import mest.service.hank.PlanProductjobTakematerialService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PlanProductjobTakematerialServiceImpl implements PlanProductjobTakematerialService {

    @Resource
    private plan_productjob_takematerialMapper pptm;


    @Override
    public int deleteByPrimaryKey(Integer id,String theirDb) {
        return pptm.deleteByPrimaryKey(id, theirDb);
    }

    @Override
    public int insert(plan_productjob_takematerial record,String theirDb) {
        return pptm.insert(record, theirDb);
    }

    @Override
    public int insertSelective(plan_productjob_takematerial record,String theirDb) {
        return pptm.insertSelective(record, theirDb);
    }

    @Override
    public plan_productjob_takematerial selectByPrimaryKey(Integer id,String theirDb) {
        return pptm.selectByPrimaryKey(id, theirDb);
    }

    @Override
    public int updateByPrimaryKeySelective(plan_productjob_takematerial record,String theirDb) {
        return pptm.updateByPrimaryKeySelective(record, theirDb);
    }

    @Override
    public int updateByPrimaryKey(plan_productjob_takematerial record,String theirDb) {
        return pptm.updateByPrimaryKey(record, theirDb);
    }

    @Override
    public int intsertList(List<plan_productjob_takematerial> record,String theirDb) {
        return pptm.intsertList(record, theirDb);
    }

    @Override
    public List<Map> queryAllModel_byId(Integer index, Integer pageSize, Integer ptId,String theirDb) {
        return pptm.queryAllModel_byId((index - 1) * pageSize, pageSize, ptId , theirDb);
    }

    @Override
    public int findCount(Integer ptId,String theirDb) {
        return pptm.findCount(ptId, theirDb);
    }

    @Override
    public int updateByone(String theirDb, List<plan_productjob_takematerial_record> record) {
        return pptm.updateByone(theirDb,record);
    }


}